package com.jd.org.mapper;

import com.jd.basic.query.DepartmentQuery;
import com.jd.org.domain.Department;


import java.util.List;

public interface DepartmentMapper {

    /**
     * 保存
     * @param department
     */
    void save(Department department);

    /**
     * 删除
     * @param id
     */
    void remove(Long id);

    /**
     * 修改
     * @param department
     */
    void update(Department department);

    /**
     * 加载单个
     * @param id
     * @return
     */
    Department loadById(Long id);
    /**
     * 加载所有
     * @return
     */
    List<Department> loadAll();
    //查询总数量
    Integer queryCount(DepartmentQuery departmentQuery);
    //查询当前页的分页数据
    List<Department> queryPage(DepartmentQuery departmentQuery);
}

